3.1.10 \(\int (e x)^m (a+b x^n) (A+B x^n) (c+d x^n)^2 \, dx\) [10]
Optimal. Leaf size=160 \[ \frac {c (A b c+a B c+2 a A d) x^{1+n} (e x)^m}{1+m+n}+\frac {(a d (2 B c+A d)+b c (B c+2 A d)) x^{1+2 n} (e x)^m}{1+m+2 n}+\frac {d (2 b B c+A b d+a B d) x^{1+3 n} (e x)^m}{1+m+3 n}+\frac {b B d^2 x^{1+4 n} (e x)^m}{1+m+4 n}+\frac {a A c^2 (e x)^{1+m}}{e (1+m)} \]
[Out]
c*(2*A*a*d+A*b*c+B*a*c)*x^(1+n)*(e*x)^m/(1+m+n)+(a*d*(A*d+2*B*c)+b*c*(2*A*d+B*c))*x^(1+2*n)*(e*x)^m/(1+m+2*n)+
d*(A*b*d+B*a*d+2*B*b*c)*x^(1+3*n)*(e*x)^m/(1+m+3*n)+b*B*d^2*x^(1+4*n)*(e*x)^m/(1+m+4*n)+a*A*c^2*(e*x)^(1+m)/e/
(1+m)
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 160, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {584, 20, 30}
\begin {gather*} \frac {c x^{n+1} (e x)^m (2 a A d+a B c+A b c)}{m+n+1}+\frac {x^{2 n+1} (e x)^m (a d (A d+2 B c)+b c (2 A d+B c))}{m+2 n+1}+\frac {d x^{3 n+1} (e x)^m (a B d+A b d+2 b B c)}{m+3 n+1}+\frac {a A c^2 (e x)^{m+1}}{e (m+1)}+\frac {b B d^2 x^{4 n+1} (e x)^m}{m+4 n+1} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[(e*x)^m*(a + b*x^n)*(A + B*x^n)*(c + d*x^n)^2,x]
[Out]
(c*(A*b*c + a*B*c + 2*a*A*d)*x^(1 + n)*(e*x)^m)/(1 + m + n) + ((a*d*(2*B*c + A*d) + b*c*(B*c + 2*A*d))*x^(1 +
2*n)*(e*x)^m)/(1 + m + 2*n) + (d*(2*b*B*c + A*b*d + a*B*d)*x^(1 + 3*n)*(e*x)^m)/(1 + m + 3*n) + (b*B*d^2*x^(1
+ 4*n)*(e*x)^m)/(1 + m + 4*n) + (a*A*c^2*(e*x)^(1 + m))/(e*(1 + m))
Rule 20
Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[b^IntPart[n]*((b*v)^FracPart[n]/(a^IntPart[n]
*(a*v)^FracPart[n])), Int[u*(a*v)^(m + n), x], x] /; FreeQ[{a, b, m, n}, x] && !IntegerQ[m] && !IntegerQ[n]
&& !IntegerQ[m + n]
Rule 30
Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]
Rule 584
Int[((g_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.)*((e_) + (f_.)*(x_)^(n_))^
(r_.), x_Symbol] :> Int[ExpandIntegrand[(g*x)^m*(a + b*x^n)^p*(c + d*x^n)^q*(e + f*x^n)^r, x], x] /; FreeQ[{a,
b, c, d, e, f, g, m, n}, x] && IGtQ[p, -2] && IGtQ[q, 0] && IGtQ[r, 0]
Rubi steps
\begin {align*} \int (e x)^m \left (a+b x^n\right ) \left (A+B x^n\right ) \left (c+d x^n\right )^2 \, dx &=\int \left (a A c^2 (e x)^m+c (A b c+a B c+2 a A d) x^n (e x)^m+(a d (2 B c+A d)+b c (B c+2 A d)) x^{2 n} (e x)^m+d (2 b B c+A b d+a B d) x^{3 n} (e x)^m+b B d^2 x^{4 n} (e x)^m\right ) \, dx\\ &=\frac {a A c^2 (e x)^{1+m}}{e (1+m)}+\left (b B d^2\right ) \int x^{4 n} (e x)^m \, dx+(c (A b c+a B c+2 a A d)) \int x^n (e x)^m \, dx+(d (2 b B c+A b d+a B d)) \int x^{3 n} (e x)^m \, dx+(a d (2 B c+A d)+b c (B c+2 A d)) \int x^{2 n} (e x)^m \, dx\\ &=\frac {a A c^2 (e x)^{1+m}}{e (1+m)}+\left (b B d^2 x^{-m} (e x)^m\right ) \int x^{m+4 n} \, dx+\left (c (A b c+a B c+2 a A d) x^{-m} (e x)^m\right ) \int x^{m+n} \, dx+\left (d (2 b B c+A b d+a B d) x^{-m} (e x)^m\right ) \int x^{m+3 n} \, dx+\left ((a d (2 B c+A d)+b c (B c+2 A d)) x^{-m} (e x)^m\right ) \int x^{m+2 n} \, dx\\ &=\frac {c (A b c+a B c+2 a A d) x^{1+n} (e x)^m}{1+m+n}+\frac {(a d (2 B c+A d)+b c (B c+2 A d)) x^{1+2 n} (e x)^m}{1+m+2 n}+\frac {d (2 b B c+A b d+a B d) x^{1+3 n} (e x)^m}{1+m+3 n}+\frac {b B d^2 x^{1+4 n} (e x)^m}{1+m+4 n}+\frac {a A c^2 (e x)^{1+m}}{e (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.34, size = 129, normalized size = 0.81 \begin {gather*} x (e x)^m \left (\frac {a A c^2}{1+m}+\frac {c (A b c+a B c+2 a A d) x^n}{1+m+n}+\frac {(a d (2 B c+A d)+b c (B c+2 A d)) x^{2 n}}{1+m+2 n}+\frac {d (2 b B c+A b d+a B d) x^{3 n}}{1+m+3 n}+\frac {b B d^2 x^{4 n}}{1+m+4 n}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[(e*x)^m*(a + b*x^n)*(A + B*x^n)*(c + d*x^n)^2,x]
[Out]
x*(e*x)^m*((a*A*c^2)/(1 + m) + (c*(A*b*c + a*B*c + 2*a*A*d)*x^n)/(1 + m + n) + ((a*d*(2*B*c + A*d) + b*c*(B*c
+ 2*A*d))*x^(2*n))/(1 + m + 2*n) + (d*(2*b*B*c + A*b*d + a*B*d)*x^(3*n))/(1 + m + 3*n) + (b*B*d^2*x^(4*n))/(1
+ m + 4*n))
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.38, size = 2410, normalized size = 15.06
| | |
method |
result |
size |
| | |
risch |
\(\text {Expression too large to display}\) |
\(2410\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((e*x)^m*(a+b*x^n)*(A+B*x^n)*(c+d*x^n)^2,x,method=_RETURNVERBOSE)
[Out]
x*(19*A*a*d^2*n^2*(x^n)^2+4*A*b*c^2*m^3*x^n+48*A*a*c*d*n^3*x^n+24*A*b*c^2*m*n^3*x^n+6*A*b*d^2*m^2*(x^n)^3+14*A
*b*d^2*n^2*(x^n)^3+B*a*c^2*m^4*x^n+6*B*a*d^2*m^2*(x^n)^3+14*B*a*d^2*n^2*(x^n)^3+56*B*b*c*d*m*n^2*(x^n)^3+18*A*
a*c*d*m^3*n*x^n+52*A*a*c*d*m^2*n^2*x^n+48*A*a*c*d*m*n^3*x^n+12*A*a*d^2*m*n^3*(x^n)^2+2*A*b*c*d*m^4*(x^n)^2+(x^
n)^3*B*a*d^2+(x^n)^2*A*a*d^2+30*A*a*c^2*m*n+38*A*a*d^2*m*n^2*(x^n)^2+8*A*a*c*d*m^3*x^n+A*a*c^2+12*B*a*c*d*m^2*
(x^n)^2+38*B*a*c*d*n^2*(x^n)^2+18*A*a*c*d*x^n*n+38*A*b*c*d*n^2*(x^n)^2+27*B*a*c^2*m^2*n*x^n+12*A*b*c*d*m^2*(x^
n)^2+16*A*b*c*d*(x^n)^2*n+9*A*b*c^2*m^3*n*x^n+26*A*b*c^2*m^2*n^2*x^n+27*A*b*c^2*m*n*x^n+16*B*a*c*d*(x^n)^2*n+2
1*A*b*d^2*m^2*n*(x^n)^3+28*A*b*d^2*m*n^2*(x^n)^3+2*B*a*c*d*m^4*(x^n)^2+21*B*a*d^2*m^2*n*(x^n)^3+28*B*a*d^2*m*n
^2*(x^n)^3+8*B*b*c^2*m^3*n*(x^n)^2+52*A*b*c^2*m*n^2*x^n+24*B*b*c^2*m^2*n*(x^n)^2+38*B*b*c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)^3+B*b*c^2*m^4*(x^n)^2
+6*B*b*d^2*m^2*(x^n)^4+11*B*b*d^2*n^2*(x^n)^4+4*A*a*d^2*m^3*(x^n)^2+12*A*a*d^2*n^3*(x^n)^2+A*b*c^2*m^4*x^n+7*A
*b*d^2*(x^n)^3*n+4*B*a*c^2*m^3*x^n+24*B*a*c^2*n^3*x^n+4*B*a*d^2*(x^n)^3*m+7*B*a*d^2*(x^n)^3*n+6*B*b*c^2*m^2*(x
^n)^2+19*B*b*c^2*n^2*(x^n)^2+4*A*a*d^2*(x^n)^2*m+4*B*b*c^2*(x^n)^2*m+B*b*d^2*m^4*(x^n)^4+A*b*d^2*m^4*(x^n)^3+B
*a*d^2*m^4*(x^n)^3+4*B*b*d^2*m^3*(x^n)^4+6*B*b*d^2*n^3*(x^n)^4+A*a*d^2*m^4*(x^n)^2+4*A*b*d^2*m^3*(x^n)^3+8*A*b
*d^2*n^3*(x^n)^3+4*B*a*d^2*m^3*(x^n)^3+8*B*a*d^2*n^3*(x^n)^3+8*B*b*c^2*(x^n)^2*n+2*B*b*c*d*(x^n)^3+30*A*a*c^2*
m^2*n+70*A*a*c^2*m*n^2)/(1+m)/(1+m+n)/(1+m+2*n)/(1+m+3*n)/(1+m+4*n)*exp(1/2*m*(-I*Pi*csgn(I*e*x)^3+I*Pi*csgn(I
*e*x)^2*csgn(I*e)+I*Pi*csgn(I*e*x)^2*csgn(I*x)-I*Pi*csgn(I*e*x)*csgn(I*e)*csgn(I*x)+2*ln(e)+2*ln(x)))
________________________________________________________________________________________
Maxima [A]
time = 0.37, size = 310, normalized size = 1.94 \begin {gather*} \frac {\left (x e\right )^{m + 1} A a c^{2} e^{\left (-1\right )}}{m + 1} + \frac {B b d^{2} x e^{\left (m \log \left (x\right ) + 4 \, n \log \left (x\right ) + m\right )}}{m + 4 \, n + 1} + \frac {2 \, B b c d x e^{\left (m \log \left (x\right ) + 3 \, n \log \left (x\right ) + m\right )}}{m + 3 \, n + 1} + \frac {B a d^{2} x e^{\left (m \log \left (x\right ) + 3 \, n \log \left (x\right ) + m\right )}}{m + 3 \, n + 1} + \frac {A b d^{2} x e^{\left (m \log \left (x\right ) + 3 \, n \log \left (x\right ) + m\right )}}{m + 3 \, n + 1} + \frac {B b c^{2} x e^{\left (m \log \left (x\right ) + 2 \, n \log \left (x\right ) + m\right )}}{m + 2 \, n + 1} + \frac {2 \, B a c d x e^{\left (m \log \left (x\right ) + 2 \, n \log \left (x\right ) + m\right )}}{m + 2 \, n + 1} + \frac {2 \, A b c d x e^{\left (m \log \left (x\right ) + 2 \, n \log \left (x\right ) + m\right )}}{m + 2 \, n + 1} + \frac {A a d^{2} x e^{\left (m \log \left (x\right ) + 2 \, n \log \left (x\right ) + m\right )}}{m + 2 \, n + 1} + \frac {B a c^{2} x e^{\left (m \log \left (x\right ) + n \log \left (x\right ) + m\right )}}{m + n + 1} + \frac {A b c^{2} x e^{\left (m \log \left (x\right ) + n \log \left (x\right ) + m\right )}}{m + n + 1} + \frac {2 \, A a c d x e^{\left (m \log \left (x\right ) + n \log \left (x\right ) + m\right )}}{m + n + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((e*x)^m*(a+b*x^n)*(A+B*x^n)*(c+d*x^n)^2,x, algorithm="maxima")
[Out]
(x*e)^(m + 1)*A*a*c^2*e^(-1)/(m + 1) + B*b*d^2*x*e^(m*log(x) + 4*n*log(x) + m)/(m + 4*n + 1) + 2*B*b*c*d*x*e^(
m*log(x) + 3*n*log(x) + m)/(m + 3*n + 1) + B*a*d^2*x*e^(m*log(x) + 3*n*log(x) + m)/(m + 3*n + 1) + A*b*d^2*x*e
^(m*log(x) + 3*n*log(x) + m)/(m + 3*n + 1) + B*b*c^2*x*e^(m*log(x) + 2*n*log(x) + m)/(m + 2*n + 1) + 2*B*a*c*d
*x*e^(m*log(x) + 2*n*log(x) + m)/(m + 2*n + 1) + 2*A*b*c*d*x*e^(m*log(x) + 2*n*log(x) + m)/(m + 2*n + 1) + A*a
*d^2*x*e^(m*log(x) + 2*n*log(x) + m)/(m + 2*n + 1) + B*a*c^2*x*e^(m*log(x) + n*log(x) + m)/(m + n + 1) + A*b*c
^2*x*e^(m*log(x) + n*log(x) + m)/(m + n + 1) + 2*A*a*c*d*x*e^(m*log(x) + n*log(x) + m)/(m + n + 1)
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1411 vs.
\(2 (164) = 328\).
time = 1.81, size = 1411, normalized size = 8.82 \begin {gather*} \frac {{\left (B b d^{2} m^{4} + 4 \, B b d^{2} m^{3} + 6 \, B b d^{2} m^{2} + 4 \, B b d^{2} m + B b d^{2} + 6 \, {\left (B b d^{2} m + B b d^{2}\right )} n^{3} + 11 \, {\left (B b d^{2} m^{2} + 2 \, B b d^{2} m + B b d^{2}\right )} n^{2} + 6 \, {\left (B b d^{2} m^{3} + 3 \, B b d^{2} m^{2} + 3 \, B b d^{2} m + B b d^{2}\right )} n\right )} x x^{4 \, n} e^{\left (m \log \left (x\right ) + m\right )} + {\left ({\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m^{4} + 2 \, B b c d + 4 \, {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m^{3} + 8 \, {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2} + {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m\right )} n^{3} + {\left (B a + A b\right )} d^{2} + 6 \, {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m^{2} + 14 \, {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2} + {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m^{2} + 2 \, {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m\right )} n^{2} + 4 \, {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m + 7 \, {\left (2 \, B b c d + {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m^{3} + {\left (B a + A b\right )} d^{2} + 3 \, {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m^{2} + 3 \, {\left (2 \, B b c d + {\left (B a + A b\right )} d^{2}\right )} m\right )} n\right )} x x^{3 \, n} e^{\left (m \log \left (x\right ) + m\right )} + {\left ({\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m^{4} + B b c^{2} + A a d^{2} + 4 \, {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m^{3} + 12 \, {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d + {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m\right )} n^{3} + 2 \, {\left (B a + A b\right )} c d + 6 \, {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m^{2} + 19 \, {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d + {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m^{2} + 2 \, {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m\right )} n^{2} + 4 \, {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m + 8 \, {\left (B b c^{2} + A a d^{2} + {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m^{3} + 2 \, {\left (B a + A b\right )} c d + 3 \, {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m^{2} + 3 \, {\left (B b c^{2} + A a d^{2} + 2 \, {\left (B a + A b\right )} c d\right )} m\right )} n\right )} x x^{2 \, n} e^{\left (m \log \left (x\right ) + m\right )} + {\left ({\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m^{4} + 2 \, A a c d + 4 \, {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m^{3} + 24 \, {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2} + {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m\right )} n^{3} + {\left (B a + A b\right )} c^{2} + 6 \, {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m^{2} + 26 \, {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2} + {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m^{2} + 2 \, {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m\right )} n^{2} + 4 \, {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m + 9 \, {\left (2 \, A a c d + {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m^{3} + {\left (B a + A b\right )} c^{2} + 3 \, {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m^{2} + 3 \, {\left (2 \, A a c d + {\left (B a + A b\right )} c^{2}\right )} m\right )} n\right )} x x^{n} e^{\left (m \log \left (x\right ) + m\right )} + {\left (A a c^{2} m^{4} + 24 \, A a c^{2} n^{4} + 4 \, A a c^{2} m^{3} + 6 \, A a c^{2} m^{2} + 4 \, A a c^{2} m + A a c^{2} + 50 \, {\left (A a c^{2} m + A a c^{2}\right )} n^{3} + 35 \, {\left (A a c^{2} m^{2} + 2 \, A a c^{2} m + A a c^{2}\right )} n^{2} + 10 \, {\left (A a c^{2} m^{3} + 3 \, A a c^{2} m^{2} + 3 \, A a c^{2} m + A a c^{2}\right )} n\right )} x e^{\left (m \log \left (x\right ) + m\right )}}{m^{5} + 24 \, {\left (m + 1\right )} n^{4} + 5 \, m^{4} + 50 \, {\left (m^{2} + 2 \, m + 1\right )} n^{3} + 10 \, m^{3} + 35 \, {\left (m^{3} + 3 \, m^{2} + 3 \, m + 1\right )} n^{2} + 10 \, m^{2} + 10 \, {\left (m^{4} + 4 \, m^{3} + 6 \, m^{2} + 4 \, m + 1\right )} n + 5 \, m + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((e*x)^m*(a+b*x^n)*(A+B*x^n)*(c+d*x^n)^2,x, algorithm="fricas")
[Out]
((B*b*d^2*m^4 + 4*B*b*d^2*m^3 + 6*B*b*d^2*m^2 + 4*B*b*d^2*m + B*b*d^2 + 6*(B*b*d^2*m + B*b*d^2)*n^3 + 11*(B*b*
d^2*m^2 + 2*B*b*d^2*m + B*b*d^2)*n^2 + 6*(B*b*d^2*m^3 + 3*B*b*d^2*m^2 + 3*B*b*d^2*m + B*b*d^2)*n)*x*x^(4*n)*e^
(m*log(x) + m) + ((2*B*b*c*d + (B*a + A*b)*d^2)*m^4 + 2*B*b*c*d + 4*(2*B*b*c*d + (B*a + A*b)*d^2)*m^3 + 8*(2*B
*b*c*d + (B*a + A*b)*d^2 + (2*B*b*c*d + (B*a + A*b)*d^2)*m)*n^3 + (B*a + A*b)*d^2 + 6*(2*B*b*c*d + (B*a + A*b)
*d^2)*m^2 + 14*(2*B*b*c*d + (B*a + A*b)*d^2 + (2*B*b*c*d + (B*a + A*b)*d^2)*m^2 + 2*(2*B*b*c*d + (B*a + A*b)*d
^2)*m)*n^2 + 4*(2*B*b*c*d + (B*a + A*b)*d^2)*m + 7*(2*B*b*c*d + (2*B*b*c*d + (B*a + A*b)*d^2)*m^3 + (B*a + A*b
)*d^2 + 3*(2*B*b*c*d + (B*a + A*b)*d^2)*m^2 + 3*(2*B*b*c*d + (B*a + A*b)*d^2)*m)*n)*x*x^(3*n)*e^(m*log(x) + m)
+ ((B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d)*m^4 + B*b*c^2 + A*a*d^2 + 4*(B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d
)*m^3 + 12*(B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d + (B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d)*m)*n^3 + 2*(B*a +
A*b)*c*d + 6*(B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d)*m^2 + 19*(B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d + (B*b*c^
2 + A*a*d^2 + 2*(B*a + A*b)*c*d)*m^2 + 2*(B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d)*m)*n^2 + 4*(B*b*c^2 + A*a*d^2
+ 2*(B*a + A*b)*c*d)*m + 8*(B*b*c^2 + A*a*d^2 + (B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d)*m^3 + 2*(B*a + A*b)*c
*d + 3*(B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d)*m^2 + 3*(B*b*c^2 + A*a*d^2 + 2*(B*a + A*b)*c*d)*m)*n)*x*x^(2*n)
*e^(m*log(x) + m) + ((2*A*a*c*d + (B*a + A*b)*c^2)*m^4 + 2*A*a*c*d + 4*(2*A*a*c*d + (B*a + A*b)*c^2)*m^3 + 24*
(2*A*a*c*d + (B*a + A*b)*c^2 + (2*A*a*c*d + (B*a + A*b)*c^2)*m)*n^3 + (B*a + A*b)*c^2 + 6*(2*A*a*c*d + (B*a +
A*b)*c^2)*m^2 + 26*(2*A*a*c*d + (B*a + A*b)*c^2 + (2*A*a*c*d + (B*a + A*b)*c^2)*m^2 + 2*(2*A*a*c*d + (B*a + A*
b)*c^2)*m)*n^2 + 4*(2*A*a*c*d + (B*a + A*b)*c^2)*m + 9*(2*A*a*c*d + (2*A*a*c*d + (B*a + A*b)*c^2)*m^3 + (B*a +
A*b)*c^2 + 3*(2*A*a*c*d + (B*a + A*b)*c^2)*m^2 + 3*(2*A*a*c*d + (B*a + A*b)*c^2)*m)*n)*x*x^n*e^(m*log(x) + m)
+ (A*a*c^2*m^4 + 24*A*a*c^2*n^4 + 4*A*a*c^2*m^3 + 6*A*a*c^2*m^2 + 4*A*a*c^2*m + A*a*c^2 + 50*(A*a*c^2*m + A*a
*c^2)*n^3 + 35*(A*a*c^2*m^2 + 2*A*a*c^2*m + A*a*c^2)*n^2 + 10*(A*a*c^2*m^3 + 3*A*a*c^2*m^2 + 3*A*a*c^2*m + A*a
*c^2)*n)*x*e^(m*log(x) + m))/(m^5 + 24*(m + 1)*n^4 + 5*m^4 + 50*(m^2 + 2*m + 1)*n^3 + 10*m^3 + 35*(m^3 + 3*m^2
+ 3*m + 1)*n^2 + 10*m^2 + 10*(m^4 + 4*m^3 + 6*m^2 + 4*m + 1)*n + 5*m + 1)
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 24932 vs.
\(2 (156) = 312\).
time = 88.96, size = 24932, normalized size = 155.82 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((e*x)**m*(a+b*x**n)*(A+B*x**n)*(c+d*x**n)**2,x)
[Out]
Piecewise(((A + B)*(a + b)*(c + d)**2*log(x)/e, Eq(m, -1) & Eq(n, 0)), ((A*a*c**2*log(x) + 2*A*a*c*d*x**n/n +
A*a*d**2*x**(2*n)/(2*n) + A*b*c**2*x**n/n + A*b*c*d*x**(2*n)/n + A*b*d**2*x**(3*n)/(3*n) + B*a*c**2*x**n/n + B
*a*c*d*x**(2*n)/n + B*a*d**2*x**(3*n)/(3*n) + B*b*c**2*x**(2*n)/(2*n) + 2*B*b*c*d*x**(3*n)/(3*n) + B*b*d**2*x*
*(4*n)/(4*n))/e, Eq(m, -1)), (A*a*c**2*Piecewise((-1/(4*n*(e*x)**(4*n)), Ne(n, 0)), (log(x), True))/e + 2*A*a*
c*d*Piecewise((-x**n/(3*n*(e*x)**(4*n)), Ne(n, 0)), (log(x), True))/e + A*a*d**2*Piecewise((-x**(2*n)/(2*n*(e*
x)**(4*n)), Ne(n, 0)), (log(x), True))/e + A*b*c**2*Piecewise((-x**n/(3*n*(e*x)**(4*n)), Ne(n, 0)), (log(x), T
rue))/e + 2*A*b*c*d*Piecewise((-x**(2*n)/(2*n*(e*x)**(4*n)), Ne(n, 0)), (log(x), True))/e + A*b*d**2*Piecewise
((-x**(3*n)/(n*(e*x)**(4*n)), Ne(n, 0)), (log(x), True))/e + B*a*c**2*Piecewise((-x**n/(3*n*(e*x)**(4*n)), Ne(
n, 0)), (log(x), True))/e + 2*B*a*c*d*Piecewise((-x**(2*n)/(2*n*(e*x)**(4*n)), Ne(n, 0)), (log(x), True))/e +
B*a*d**2*Piecewise((-x**(3*n)/(n*(e*x)**(4*n)), Ne(n, 0)), (log(x), True))/e + B*b*c**2*Piecewise((-x**(2*n)/(
2*n*(e*x)**(4*n)), Ne(n, 0)), (log(x), True))/e + 2*B*b*c*d*Piecewise((-x**(3*n)/(n*(e*x)**(4*n)), Ne(n, 0)),
(log(x), True))/e + B*b*d**2*Piecewise((0, (Abs(x) < 1) & (1/Abs(x) < 1)), (log(x)/e**(4*n), Abs(x) < 1), (-lo
g(1/x)/e**(4*n), 1/Abs(x) < 1), (-meijerg(((), (1, 1)), ((0, 0), ()), x)/e**(4*n) + meijerg(((1, 1), ()), ((),
(0, 0)), x)/e**(4*n), True))/e, Eq(m, -4*n - 1)), (A*a*c**2*Piecewise((-1/(3*n*(e*x)**(3*n)), Ne(n, 0)), (log
(x), True))/e + 2*A*a*c*d*Piecewise((-x**n/(2*n*(e*x)**(3*n)), Ne(n, 0)), (log(x), True))/e + A*a*d**2*Piecewi
se((-x**(2*n)/(n*(e*x)**(3*n)), Ne(n, 0)), (log(x), True))/e + A*b*c**2*Piecewise((-x**n/(2*n*(e*x)**(3*n)), N
e(n, 0)), (log(x), True))/e + 2*A*b*c*d*Piecewise((-x**(2*n)/(n*(e*x)**(3*n)), Ne(n, 0)), (log(x), True))/e +
A*b*d**2*Piecewise((0, (Abs(x) < 1) & (1/Abs(x) < 1)), (log(x)/e**(3*n), Abs(x) < 1), (-log(1/x)/e**(3*n), 1/A
bs(x) < 1), (-meijerg(((), (1, 1)), ((0, 0), ()), x)/e**(3*n) + meijerg(((1, 1), ()), ((), (0, 0)), x)/e**(3*n
), True))/e + B*a*c**2*Piecewise((-x**n/(2*n*(e*x)**(3*n)), Ne(n, 0)), (log(x), True))/e + 2*B*a*c*d*Piecewise
((-x**(2*n)/(n*(e*x)**(3*n)), Ne(n, 0)), (log(x), True))/e + B*a*d**2*Piecewise((0, (Abs(x) < 1) & (1/Abs(x) <
1)), (log(x)/e**(3*n), Abs(x) < 1), (-log(1/x)/e**(3*n), 1/Abs(x) < 1), (-meijerg(((), (1, 1)), ((0, 0), ()),
x)/e**(3*n) + meijerg(((1, 1), ()), ((), (0, 0)), x)/e**(3*n), True))/e + B*b*c**2*Piecewise((-x**(2*n)/(n*(e
*x)**(3*n)), Ne(n, 0)), (log(x), True))/e + 2*B*b*c*d*Piecewise((0, (Abs(x) < 1) & (1/Abs(x) < 1)), (log(x)/e*
*(3*n), Abs(x) < 1), (-log(1/x)/e**(3*n), 1/Abs(x) < 1), (-meijerg(((), (1, 1)), ((0, 0), ()), x)/e**(3*n) + m
eijerg(((1, 1), ()), ((), (0, 0)), x)/e**(3*n), True))/e + B*b*d**2*Piecewise((x**(4*n)/(n*(e*x)**(3*n)), Ne(n
, 0)), (log(x), True))/e, Eq(m, -3*n - 1)), (A*a*c**2*Piecewise((-1/(2*n*(e*x)**(2*n)), Ne(n, 0)), (log(x), Tr
ue))/e + 2*A*a*c*d*Piecewise((-x**n/(n*(e*x)**(2*n)), Ne(n, 0)), (log(x), True))/e + A*a*d**2*Piecewise((0, (A
bs(x) < 1) & (1/Abs(x) < 1)), (log(x)/e**(2*n), Abs(x) < 1), (-log(1/x)/e**(2*n), 1/Abs(x) < 1), (-meijerg((()
, (1, 1)), ((0, 0), ()), x)/e**(2*n) + meijerg(((1, 1), ()), ((), (0, 0)), x)/e**(2*n), True))/e + A*b*c**2*Pi
ecewise((-x**n/(n*(e*x)**(2*n)), Ne(n, 0)), (log(x), True))/e + 2*A*b*c*d*Piecewise((0, (Abs(x) < 1) & (1/Abs(
x) < 1)), (log(x)/e**(2*n), Abs(x) < 1), (-log(1/x)/e**(2*n), 1/Abs(x) < 1), (-meijerg(((), (1, 1)), ((0, 0),
()), x)/e**(2*n) + meijerg(((1, 1), ()), ((), (0, 0)), x)/e**(2*n), True))/e + A*b*d**2*Piecewise((x**(3*n)/(n
*(e*x)**(2*n)), Ne(n, 0)), (log(x), True))/e + B*a*c**2*Piecewise((-x**n/(n*(e*x)**(2*n)), Ne(n, 0)), (log(x),
True))/e + 2*B*a*c*d*Piecewise((0, (Abs(x) < 1) & (1/Abs(x) < 1)), (log(x)/e**(2*n), Abs(x) < 1), (-log(1/x)/
e**(2*n), 1/Abs(x) < 1), (-meijerg(((), (1, 1)), ((0, 0), ()), x)/e**(2*n) + meijerg(((1, 1), ()), ((), (0, 0)
), x)/e**(2*n), True))/e + B*a*d**2*Piecewise((x**(3*n)/(n*(e*x)**(2*n)), Ne(n, 0)), (log(x), True))/e + B*b*c
**2*Piecewise((0, (Abs(x) < 1) & (1/Abs(x) < 1)), (log(x)/e**(2*n), Abs(x) < 1), (-log(1/x)/e**(2*n), 1/Abs(x)
< 1), (-meijerg(((), (1, 1)), ((0, 0), ()), x)/e**(2*n) + meijerg(((1, 1), ()), ((), (0, 0)), x)/e**(2*n), Tr
ue))/e + 2*B*b*c*d*Piecewise((x**(3*n)/(n*(e*x)**(2*n)), Ne(n, 0)), (log(x), True))/e + B*b*d**2*Piecewise((x*
*(4*n)/(2*n*(e*x)**(2*n)), Ne(n, 0)), (log(x), True))/e, Eq(m, -2*n - 1)), (A*a*c**2*Piecewise((-1/(n*(e*x)**n
), Ne(n, 0)), (log(x), True))/e + 2*A*a*c*d*Piecewise((0, (Abs(x) < 1) & (1/Abs(x) < 1)), (log(x)/e**n, Abs(x)
< 1), (-log(1/x)/e**n, 1/Abs(x) < 1), (-meijerg(((), (1, 1)), ((0, 0), ()), x)/e**n + meijerg(((1, 1), ()), (
(), (0, 0)), x)/e**n, True))/e + A*a*d**2*Piecewise((x**(2*n)/(n*(e*x)**n), Ne(n, 0)), (log(x), True))/e + A*b
*c**2*Piecewise((0, (Abs(x) < 1) & (1/Abs(x) < 1)), (log(x)/e**n, Abs(x) < 1), (-log(1/x)/e**n, 1/Abs(x) < 1),
(-meijerg(((), (1, 1)), ((0, 0), ()), x)/e**n ...
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 3415 vs.
\(2 (164) = 328\).
time = 0.90, size = 3415, normalized size = 21.34 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((e*x)^m*(a+b*x^n)*(A+B*x^n)*(c+d*x^n)^2,x, algorithm="giac")
[Out]
(B*b*d^2*m^4*x*x^m*x^(4*n)*e^m + 6*B*b*d^2*m^3*n*x*x^m*x^(4*n)*e^m + 11*B*b*d^2*m^2*n^2*x*x^m*x^(4*n)*e^m + 6*
B*b*d^2*m*n^3*x*x^m*x^(4*n)*e^m + 2*B*b*c*d*m^4*x*x^m*x^(3*n)*e^m + B*a*d^2*m^4*x*x^m*x^(3*n)*e^m + A*b*d^2*m^
4*x*x^m*x^(3*n)*e^m + 14*B*b*c*d*m^3*n*x*x^m*x^(3*n)*e^m + 7*B*a*d^2*m^3*n*x*x^m*x^(3*n)*e^m + 7*A*b*d^2*m^3*n
*x*x^m*x^(3*n)*e^m + 28*B*b*c*d*m^2*n^2*x*x^m*x^(3*n)*e^m + 14*B*a*d^2*m^2*n^2*x*x^m*x^(3*n)*e^m + 14*A*b*d^2*
m^2*n^2*x*x^m*x^(3*n)*e^m + 16*B*b*c*d*m*n^3*x*x^m*x^(3*n)*e^m + 8*B*a*d^2*m*n^3*x*x^m*x^(3*n)*e^m + 8*A*b*d^2
*m*n^3*x*x^m*x^(3*n)*e^m + B*b*c^2*m^4*x*x^m*x^(2*n)*e^m + 2*B*a*c*d*m^4*x*x^m*x^(2*n)*e^m + 2*A*b*c*d*m^4*x*x
^m*x^(2*n)*e^m + A*a*d^2*m^4*x*x^m*x^(2*n)*e^m + 8*B*b*c^2*m^3*n*x*x^m*x^(2*n)*e^m + 16*B*a*c*d*m^3*n*x*x^m*x^
(2*n)*e^m + 16*A*b*c*d*m^3*n*x*x^m*x^(2*n)*e^m + 8*A*a*d^2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*x^(2*n)*e^m + 38*B*a*c*d*n^2*x*x^m
*x^(2*n)*e^m + 38*A*b*c*d*n^2*x*x^m*x^(2*n)*e^m + 19*A*a*d^2*n^2*x*x^m*x^(2*n)*e^m + 6*B*a*c^2*m^2*x*x^m*x^n*e
^m + 6*A*b*c^2*m^2*x*x^m*x^n*e^m + 12*A*a*c*d*m^2*x*x^m*x^n*e^m + 27*B*a*c^2*m*n*x*x^m*x^n*e^m + 27*A*b*c^2*m*
n*x*x^m*x^n*e^m + 54*A*a*c*d*m*n*x*x^m*x^n*e^m + 26*B*a*c^2*n^2*x*x^m*x^n*e^m + 26*A*b*c^2*n^2*x*x^m*x^n*e^m +
52*A*a*c*d*n^2*x*x^m*x^n*e^m + 6*A*a*c^2*m^2*x*x^m*e^m + 30*A*a*c^2*m*n*x*x^m*e^m + 35*A*a*c^2*n^2*x*x^m*e^m
+ 4*B*b*d^2*m*x*x^m*x^(4*n)*e^m + 6*B*b*d^2*n*x*x^m*x^(4*n)*e^m + 8*B*b*c*d*m*x*x^m*x^(3*n)*e^m + 4*B*a*d^2*m*
x*x^m*x^(3*n)*e^m + 4*A*b*d^2*m*x*x^m*x^(3*n)*e^m + 14*B*b*c*d*n*x*x^m*x^(3*n)*e^m + 7*B*a*d^2*n*x*x^m*x^(3*n)
*e^m + 7*A*b*d^2*n*x*x^m*x^(3*n)*e^m + 4*B*b*c^2*m*x*x^m*x^(2*n)*e^m + 8*B*a*c*d*m*x*x^m*x^(2*n)*e^m + 8*A*b*c
*d*m*x*x^m*x^(2*n)*e^m + 4*A*a*d^2*m*x*x^m*x^(2*n)*e^m + 8*B*b*c^2*n*x*x^m*x^(2*n)*e^m + 16*B*a*c*d*n*x*x^m*x^
(2*n)*e^m + 16*A*b*c*d*n*x*x^m*x^(2*n)*e^m + 8*...
________________________________________________________________________________________
Mupad [B]
time = 5.20, size = 588, normalized size = 3.68 \begin {gather*} \frac {x\,x^{2\,n}\,{\left (e\,x\right )}^m\,\left (A\,a\,d^2+B\,b\,c^2+2\,A\,b\,c\,d+2\,B\,a\,c\,d\right )\,\left (m^3+8\,m^2\,n+3\,m^2+19\,m\,n^2+16\,m\,n+3\,m+12\,n^3+19\,n^2+8\,n+1\right )}{m^4+10\,m^3\,n+4\,m^3+35\,m^2\,n^2+30\,m^2\,n+6\,m^2+50\,m\,n^3+70\,m\,n^2+30\,m\,n+4\,m+24\,n^4+50\,n^3+35\,n^2+10\,n+1}+\frac {A\,a\,c^2\,x\,{\left (e\,x\right )}^m}{m+1}+\frac {c\,x\,x^n\,{\left (e\,x\right )}^m\,\left (2\,A\,a\,d+A\,b\,c+B\,a\,c\right )\,\left (m^3+9\,m^2\,n+3\,m^2+26\,m\,n^2+18\,m\,n+3\,m+24\,n^3+26\,n^2+9\,n+1\right )}{m^4+10\,m^3\,n+4\,m^3+35\,m^2\,n^2+30\,m^2\,n+6\,m^2+50\,m\,n^3+70\,m\,n^2+30\,m\,n+4\,m+24\,n^4+50\,n^3+35\,n^2+10\,n+1}+\frac {d\,x\,x^{3\,n}\,{\left (e\,x\right )}^m\,\left (A\,b\,d+B\,a\,d+2\,B\,b\,c\right )\,\left (m^3+7\,m^2\,n+3\,m^2+14\,m\,n^2+14\,m\,n+3\,m+8\,n^3+14\,n^2+7\,n+1\right )}{m^4+10\,m^3\,n+4\,m^3+35\,m^2\,n^2+30\,m^2\,n+6\,m^2+50\,m\,n^3+70\,m\,n^2+30\,m\,n+4\,m+24\,n^4+50\,n^3+35\,n^2+10\,n+1}+\frac {B\,b\,d^2\,x\,x^{4\,n}\,{\left (e\,x\right )}^m\,\left (m^3+6\,m^2\,n+3\,m^2+11\,m\,n^2+12\,m\,n+3\,m+6\,n^3+11\,n^2+6\,n+1\right )}{m^4+10\,m^3\,n+4\,m^3+35\,m^2\,n^2+30\,m^2\,n+6\,m^2+50\,m\,n^3+70\,m\,n^2+30\,m\,n+4\,m+24\,n^4+50\,n^3+35\,n^2+10\,n+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((e*x)^m*(A + B*x^n)*(a + b*x^n)*(c + d*x^n)^2,x)
[Out]
(x*x^(2*n)*(e*x)^m*(A*a*d^2 + B*b*c^2 + 2*A*b*c*d + 2*B*a*c*d)*(3*m + 8*n + 16*m*n + 19*m*n^2 + 8*m^2*n + 3*m^
2 + m^3 + 19*n^2 + 12*n^3 + 1))/(4*m + 10*n + 30*m*n + 70*m*n^2 + 30*m^2*n + 50*m*n^3 + 10*m^3*n + 6*m^2 + 4*m
^3 + m^4 + 35*n^2 + 50*n^3 + 24*n^4 + 35*m^2*n^2 + 1) + (A*a*c^2*x*(e*x)^m)/(m + 1) + (c*x*x^n*(e*x)^m*(2*A*a*
d + A*b*c + B*a*c)*(3*m + 9*n + 18*m*n + 26*m*n^2 + 9*m^2*n + 3*m^2 + m^3 + 26*n^2 + 24*n^3 + 1))/(4*m + 10*n
+ 30*m*n + 70*m*n^2 + 30*m^2*n + 50*m*n^3 + 10*m^3*n + 6*m^2 + 4*m^3 + m^4 + 35*n^2 + 50*n^3 + 24*n^4 + 35*m^2
*n^2 + 1) + (d*x*x^(3*n)*(e*x)^m*(A*b*d + B*a*d + 2*B*b*c)*(3*m + 7*n + 14*m*n + 14*m*n^2 + 7*m^2*n + 3*m^2 +
m^3 + 14*n^2 + 8*n^3 + 1))/(4*m + 10*n + 30*m*n + 70*m*n^2 + 30*m^2*n + 50*m*n^3 + 10*m^3*n + 6*m^2 + 4*m^3 +
m^4 + 35*n^2 + 50*n^3 + 24*n^4 + 35*m^2*n^2 + 1) + (B*b*d^2*x*x^(4*n)*(e*x)^m*(3*m + 6*n + 12*m*n + 11*m*n^2 +
6*m^2*n + 3*m^2 + m^3 + 11*n^2 + 6*n^3 + 1))/(4*m + 10*n + 30*m*n + 70*m*n^2 + 30*m^2*n + 50*m*n^3 + 10*m^3*n
+ 6*m^2 + 4*m^3 + m^4 + 35*n^2 + 50*n^3 + 24*n^4 + 35*m^2*n^2 + 1)
________________________________________________________________________________________